#include "inspectmainpage.h"
#include "ui_inspectmainpage.h"
#include "mainpage.h"
inspectMainpage::inspectMainpage(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::inspectMainpage)
{
    ui->setupUi(this);
}

inspectMainpage::~inspectMainpage()
{
    delete ui;
}

void inspectMainpage::on_installButton_clicked()
{
    ui->stackedWidget->setCurrentIndex(0);
}


void inspectMainpage::on_controlButton_clicked()
{
    ui->stackedWidget->setCurrentIndex(1);
}


void inspectMainpage::on_searchButton_clicked()
{
    ui->stackedWidget->setCurrentIndex(2);
}


void inspectMainpage::on_toolButton_clicked()
{
    ui->stackedWidget->setCurrentIndex(3);
}


void inspectMainpage::on_returnButton_clicked()
{
    mainpage *newpage = new mainpage(nullptr);
    newpage->show();
    this->close();
}

